package com.codeoss.framework.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.codeoss.framework.response.MMainResponse;
import com.codeoss.framework.service.IMMainService;

@Controller
@RequestMapping("mmain")
public class MMainController {
	@Autowired
	private IMMainService mmainService;
	
	@RequestMapping(value = "init", method = RequestMethod.GET)
	@ResponseBody
	public MMainResponse init(){
		MMainResponse mmainResponse=mmainService.init();
		return mmainResponse;
	}
}
